﻿<local:BaseDataBaseWizardWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Sinacor.Deployment.Setup.UI"
	x:Class="Sinacor.Deployment.Setup.UI.ServiceCompanyChecking"
	Title="Setup">

		<Grid>
		<Button HorizontalAlignment="Right" Style="{DynamicResource BotaoFechar}" VerticalAlignment="Top" Width="15" Height="15" Content="" Margin="0,15,15,0" x:Name="BtnClose"/>
		<TextBlock Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="860" Foreground="#FF333333"><Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Instalação do Serviços - Compatibilidade de Versões" Language="pt-br"/><LineBreak/><LineBreak/><Run Text="Existem uma ou mais empresas que não estão compatíveis com a versão dos serviços.
Abaixo segue a relação de compatibilidade:" Language="pt-br"/></TextBlock>
		<Button Margin="0,0,140,50" Style="{DynamicResource setupBt}" x:Name="BtnPrevious" Content="Retornar" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Width="80"/>
		<Button Margin="0,0,50,50" Style="{DynamicResource setupBt}" x:Name="BtnNext" Content="Avançar" Background="{DynamicResource BtBackColor}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="80" Height="21" Foreground="#FFFFFFFF"/>
        <ListView x:Name="gdVersions" Background="{DynamicResource BackCinza}" ItemsSource="{Binding CompaniesVersions}" Style="{DynamicResource List}" FontSize="12" FontWeight="Normal" IsSynchronizedWithCurrentItem="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="50,207,0,0" Height="374" VerticalAlignment="Top" HorizontalAlignment="Left" Width="860">
			<ListView.View>
				<GridView ColumnHeaderContainerStyle="{DynamicResource ListaColunaCor}">
					<GridViewColumn Header="Empresa" Width="256" DisplayMemberBinding="{Binding Company.Name}" />
					<GridViewColumn Header="Módulo" Width="260" DisplayMemberBinding="{Binding Company.Module.Name}" />
					<GridViewColumn Header="Banco" Width="120" DisplayMemberBinding="{Binding Company.DataBaseVersion}" />
                    <GridViewColumn Header="Setup" Width="110" DisplayMemberBinding="{Binding ExtendedSetupVersions}"/>
                    <GridViewColumn Header="Status" Width="110">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Image HorizontalAlignment="Center" Width="19" Source="{DynamicResource StatusError}" ToolTip="{Binding ToolTipMessage}" VerticalAlignment="Top" Height="19" x:Name="StatusIcon"/>
                                <DataTemplate.Triggers>
                                    <DataTrigger Binding="{Binding Status}" Value="Ok">
                                        <Setter Property="Source" TargetName="StatusIcon" Value="{DynamicResource StatusOK}" />
                                    </DataTrigger>
                                    <DataTrigger Binding="{Binding Status}" Value="NotOk">
                                        <Setter Property="Source" TargetName="StatusIcon" Value="{DynamicResource StatusError}" />
                                    </DataTrigger>
                                </DataTemplate.Triggers>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
			</ListView.View>            
        </ListView>
    </Grid>
</local:BaseDataBaseWizardWindow>